import java.util.*;

public class Main {
    public static void main(String[] args) {
        List<Employee> employees = new ArrayList<>();

        //write your code here......
        Employee employee1=new Employee("小明",2500);
        Employee employee2=new Employee("小军",8000);
        Employee employee3=new Employee("小红",100000);
        employees.add(employee1);
        employees.add(employee2);
        employees.add(employee3);
        for(int i=0;i<employees.size();i++){
            double tax=0.0;
            double taxHome=employees.get(i).getSalary()-3500;
            if(taxHome<0){
                tax=0.0;
            }else if(taxHome<1500){
                tax=taxHome*0.030;
            }else if(taxHome<4500){
                tax=taxHome*0.10-105;
            }else if(taxHome<9000){
                tax=taxHome*0.20-555;
            }else if(taxHome<35000){
                tax=taxHome*0.250-1005;
            }else if(taxHome<55000){
                tax=taxHome*0.30-2755;
            }else if(taxHome<80000){
                tax=taxHome*0.350-5505;
            }else
                tax=taxHome*0.450-13505;
            System.out.println(employees.get(i).getName()+"应该缴纳的个人所得税是："+tax);

        }



    }
}
class Employee{
    private String name;
    private double salary;
    public Employee(String name, double salary) {
        this.name = name;
        this.salary = salary;
    }
    public String getName() {
        return name;
    }

    public double getSalary() {
        return salary;
    }
}